import { request } from 'umi';

export async function saveBook(params: any) {
  return request('/api/client/saveBook', {
    method: 'POST',
    data: params,
  });
}

export async function getBookList(params: any) {
  return request('/api/client/getBookList', {
    method: 'GET',
    params,
  });
}
export async function saveBookVisitNum(params: any) {
  return request('/api/client/saveBookVisitNum', {
    method: 'POST',
    data: params,
  });
}
export async function getBookTop(params: any) {
  return request('/api/client/getBookTop', {
    method: 'GET',
    params,
  });
}
